package chaowan.pojo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.util.Date;

@Data
public class ShopUser {
    private Long uid;

    @NotEmpty
    @Pattern(regexp = "^\\S{3,20}$")
    private String uname;

    @NotEmpty
    @Pattern(regexp = "^\\S{6,20}$")
    private String pwd;

    @Email
    private String email;

    private String type; // 普通用户、管理员

    private Integer active;

    private Date createdAt;
}